package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.DsstoreBillDelivery;
import cn.stylefeng.guns.sys.modular.system.model.params.DsstoreBillDeliveryParam;
import cn.stylefeng.guns.sys.modular.system.model.result.DsstoreBillDeliveryResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2021-07-12
 */
public interface DsstoreBillDeliveryService extends IService<DsstoreBillDelivery> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    void add(DsstoreBillDeliveryParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    void delete(DsstoreBillDeliveryParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    void update(DsstoreBillDeliveryParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    DsstoreBillDeliveryResult findBySpec(DsstoreBillDeliveryParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    List<DsstoreBillDeliveryResult> findListBySpec(DsstoreBillDeliveryParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-12
     */
     LayuiPageInfo findPageBySpec(DsstoreBillDeliveryParam param);

    void initDsstoreBillData(List<String> dateList);

    LayuiPageInfo findPageByParam(DsstoreBillDeliveryParam dsstoreBillDeliveryParam);

    DsstoreBillDeliveryResult getViewDataById(String id);

    List<DsstoreBillDeliveryResult> getViewDataListById(List<String> ids);

    ResponseEntity<byte[]> exportExcel(HttpServletRequest request, HttpServletResponse response, DsstoreBillDeliveryParam param);
}
